package com.example.demo.dao;

import com.example.demo.entity.sqlbean.Customer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CustomerDao {

    /**
     * 用于token取IEMI码、
     * @param machineCode
     * @return
     */
    Customer selectCustomer(String machineCode);

    List<String> selectAll();

    /**
     * 通过账号密码查询是否有这条数据
     * @param account
     * @param password
     * @return
     */
    Customer selectCustomerAccountPwd(@Param("account") String account ,
                                      @Param("password") String password);

    Integer updateCustomerMachineCode(@Param("account") String account ,
                                      @Param("password") String password,
                                      @Param("machineCode") String machineCode);


}
